package com.heima.wemedia.service;

import com.heima.wemedia.entity.WmNewsMaterial;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 自媒体图文引用素材信息表 服务类
 * </p>
 *
 * @author RMY
 * @since 2021-11-24
 */
public interface WmNewsMaterialService extends IService<WmNewsMaterial> {
    //删除文章
    void removeByNewsId(Integer wmNewsId);

    //保存文章
    void saveBatchByNewsIdAndImageIds(Integer wmNewsId, List<Integer> materialIds, int type);
}
